package com.kinggrid.mybatisplus.pagination;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@EnableDiscoveryClient
public class SpringBootTestApplication {
    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(SpringBootTestApplication.class);
        springApplication.run();
        /*ConfigurableApplicationContext context = new SpringApplicationBuilder(SpringBootTestApplication.class)
                //是否是web环境
                .web(WebApplicationType.SERVLET)
                .run(args);*/
        // 输出变量
        // System.out.println(context.getEnvironment().getProperty("jdbc.driver"));
    }
}
